package org.ii.domain.company;

import javax.validation.constraints.Pattern;
import javax.xml.bind.annotation.XmlRootElement;

import org.ii.domain.common.Entity;

import lombok.Getter;
import lombok.Setter;

@XmlRootElement
@javax.persistence.Entity
public class Company extends AbstractCompany implements Entity {

	public Company(){
		super();
	}
	
	public Company(final String orgName){
		super();
		setName(orgName);		
	}

	@Pattern(regexp="[a-zA-Z0-9\\pL\\s\\-]{0,40}", message="Firma inneholder ugyldige tegn.")
	@Getter @Setter
	private String name;

	@Getter @Setter
	private String homepage;
}
